﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MODEL;

namespace Service
{
    public class AlertDocService_Design: IAlertDocService
    {
        public Task<IEnumerable<AlertDoc>> QueryAlertDocsAsync(AlertDocQueryCriteria criteria = null)
        {
            return Task<IEnumerable<AlertDoc>>.Run(()=> {
                return new List<AlertDoc> {
                   new AlertDoc{
                       Id = 1,
                       Content = "helloworld",
                       UserIndustry = "农业",
                       ElementName = "西瓜",
                       AddMan = "admin",
                       InsertTime = DateTime.Now,
                       TagObjectInfo = new TagObjectInfo{
                           TagId = 1,
                           TagObjectName = "标签",
                           TagObjectCode = "123",
                           Mark ="标签 "
                       }
                   }
                }.AsEnumerable();
            });
        }

        public Task<int> InsertOrUpdateAlertDoc(AlertDoc alertDoc)
        {
            throw new NotImplementedException();
        }

        public Task<int> DeleteAlertDoc(List<int> alertDocIdList)
        {
            throw new NotImplementedException();
        }
    }
}
